package entity;

import java.util.Calendar;

public class Record {
	
	//email
    private String email;
    
    //单词id
    private Integer wordID;
    
    //背的次数
    private Integer count;
    
    //最后一次背的年
    private Integer year;
    
    //最后一次背的月
    private Integer month;



    //最后一次背的日
    private Integer day;



    //标记 1 表示背过 2表示pass
    private Integer flag;
    public Record() {
    	
    }
    
    public Record(String email, Integer wordID, Integer count, Integer year, Integer month, Integer day, Integer flag) {
        this.email = email;
        this.wordID = wordID;
        this.count = count;
        this.year = year;
        this.month = month;
        this.day = day;
        this.flag = flag;
    }




    public Integer getFlag() {
        return flag;
    }
    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getWordID() {
        return wordID;
    }

    public void setWordID(Integer wordID) {
        this.wordID = wordID;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public java.lang.String toString() {
        return "Demo01InputStream{" +
                "email='" + email + '\'' +
                ", wordID=" + wordID +
                ", count=" + count +
                ", year=" + year +
                ", month=" + month +
                ", day=" + day +
                ", flag=" + flag +
                '}';
    }
    public  void  time(){

        Calendar cal= Calendar.getInstance();

        this.year =cal.get(Calendar.YEAR);   //年
        this.month =cal.get(Calendar.MONTH)+1;  //月  默认是从0开始  即1月获取到的是0
        this.day  =cal.get(Calendar.DAY_OF_MONTH);  //日，即一个月中的第几天

    }
}

